package com.partner.bean.suggestion;

import java.util.Date;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class Suggestion {
    private Integer id;
    @NotBlank(message = "{account.is.null}")
	@Pattern(regexp="^((13[0-9])|(14[5,7,9])|(15[^4,\\D])|(17[0,1,3,5-8])|(18[0-9]))\\d{8}$", message="{account.format.error}")
    private String account;
    @NotBlank(message = "{comtents.is.null}")
    @Length(max=150,message = "{length.150.error}")
    private String comtents;
/*    @NotBlank(message = "{mobile.is.null}")*/
    @Length(max=30,message = "{length.30.error}")
    private String phone;

    private Date time;

    private String replycontent;

    private String replyuser;

    private Date replytime;
    @NotBlank(message = "{session.is.null}")
    private String session ; 

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getComtents() {
        return comtents;
    }

    public void setComtents(String comtents) {
        this.comtents = comtents == null ? null : comtents.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getReplycontent() {
        return replycontent;
    }

    public void setReplycontent(String replycontent) {
        this.replycontent = replycontent == null ? null : replycontent.trim();
    }

    public String getReplyuser() {
        return replyuser;
    }

    public void setReplyuser(String replyuser) {
        this.replyuser = replyuser == null ? null : replyuser.trim();
    }

    public Date getReplytime() {
        return replytime;
    }

    public void setReplytime(Date replytime) {
        this.replytime = replytime;
    }

	public String getSession() {
		return session;
	}

	public void setSession(String session) {
		this.session = session;
	}
    
}